//
//
//
#ifndef __ROCKETPORTOCOLQUERY_H
#define __ROCKETPORTOCOLQUERY_H

#include "RocketRequest.h"
#include "RocketResponse.h"
#include "RocketCommon.h"

class CRocketRequestQuery : public CRocketRequest
{
public:
	CRocketRequestQuery(MNetworkEventObervser* aObserver);
	~CRocketRequestQuery();
	
	TBool	Encode();
	void 	SetInfo(const TDesC8& aUid, const TDesC8& aRand);
	
private:
	TBuf8<20>	iUid;
	TBuf8<20>	iRand;
};

class CRocketResponseQuery : public CRocketResponse
{
public:
	CRocketResponseQuery();
	~CRocketResponseQuery();
	
public:
	void OnStartElementL(const Xml::RTagInfo& aElement,
								const Xml::RAttributeArray& aAttributes,
								TInt aErrorCode);
	
	void OnEndElementL(const Xml::RTagInfo &aElement, 
										TInt aErrorCode);	
};

#endif
